<?
require('../phpQuery/phpQuery/phpQuery.php');
$tpl_name='../../tpl/domtext.htm';

$pq=phpQuery::newDocumentFileXHTML($tpl_name);
$tst=false;
//$pq->find('*[Jlib_control]')->toReference($tst);
$pq->find('#nav_main li:first')->toReference($tst);

//$tst->removeAttr('Jlib_control');
$tst->html('<a href="">YAHOO!</a>');

echo $pq;
//echo "found control <b>".$tst->html().'</b>';
//echo '<pre>',print_r( $tst->get(0)->tagName, true),'</pre>';


?>
